package MyOop01;

public class PhoneTest {
    public static void main(String[] args) {
        //创建手机对象
        Phone phone1  =new Phone();

        //给手机赋值
        phone1.brand = "小米";
        phone1.price = 1999.98;

        //获取手机中的值
        System.out.println( phone1.brand);
        System.out.println(phone1.price);

        //调用手机的方法
        phone1.call();
        phone1.playGame();

        Phone phone2  = new Phone();
        phone2.brand = "苹果";
        phone2.price = 8999.9;

        phone2.call();
        phone2.playGame();
        /**
         * 类：是共同特征的描述（设计图）；对象：是真实存在的具体案例
         */

    }
}
